package com.stbu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/myTest")

public class Mycontroller {

       // @GetMapping("/hello")
@RequestMapping("/hello")
    public String sayHello() {return "welcome.jsp";}

    @GetMapping("/toParam")
    public String getParam(@RequestParam("u1") String u) {
        System.out.println("u1 param ="+ u);
        return "home";
    }


}

